package cn.jietuo.first.cartoonalgorithm;

/**
 * @author zhangx & jietuo_zx@163.com
 * @version 1.0
 * @date 2020/7/27
 * @description:
 */
public class Text {

    public static void main(String[] args) {
        String first = "first";
        String second = new String("first");
        first = "first".concat("second");
        System.out.println(first);
        System.out.println(first.equals(second));
        System.out.println(first == second);
        System.out.println(first.equals("firstsecond"));
        System.out.println(second == "first");
    }
}
